<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation"
	style="margin-bottom: 0">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse"
			data-target=".navbar-collapse">
			<span class="sr-only">Toggle navigation</span> <span
				class="icon-bar"></span> <span class="icon-bar"></span> <span
				class="icon-bar"></span>
		</button>
		<img class="navbar-brand" src="/static/custom/img/Gitool.png"
			style="padding: 10px 25px">

		<!--a class="navbar-brand">Babytree-Gitool v2.0</a-->
	</div>
	<!-- /.navbar-header -->

	<ul class="nav navbar-top-links navbar-right">
		<li class="dropdown"><a class="dropdown-toggle"
			data-toggle="dropdown" href="#"> {{$.Name}}
				- Engineer <i class="fa fa-user fa-fw"></i> <i
				class="fa fa-caret-down"></i>
		</a>
			<ul class="dropdown-menu dropdown-user">
				<li>
					<a href="/account/chgpwd"><i class="fa fa-user fa-fw"></i> 修改密码</a>
                </li>
                <li class="divider"></li>
				<li>
					<a href="/account/logout"><i class="fa fa-sign-out fa-fw"></i>退出</a>
				</li>
			</ul> <!-- /.dropdown-user --></li>
		<!-- /.dropdown -->
	</ul>
		<!-- /.navbar-top-links -->
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<ul class="nav" id="side-menu">
				<li class="sidebar-search">
					<div class="input-group custom-search-form">
						<input type="text" class="form-control" placeholder="Search...">
						<span class="input-group-btn">
							<button class="btn btn-default" type="button">
								<i class="fa fa-search"></i>
							</button>
						</span>
					</div> <!-- /input-group -->
				</li>
		{{range .Roles}}
			{{if eq .Roleid.Id 3}}
				<li><a href="gitool/dashboard"><i
						class="fa fa-dashboard fa-fw"></i> 全局配置</a></li>
			{{end}}
			{{if eq .Roleid.Id 1}}
				<li><a href="#"><i class="fa fa-pencil-square-o fa-fw"></i>
						人员管理<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="/user/add">添加用户</a></li>
						<li><a href="/user/list">用户列表</a></li>
					</ul></li>
			{{end}}
			{{if eq .Roleid.Id 2}}
				<li><a href="#"><i class="fa fa-pencil-square-o fa-fw"></i>
						项目管理<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="my_task_list.html">创建项目</a></li>
						<li><a href="gitool/my_task_list?q=done">项目列表</a></li>
					</ul></li>
			{{end}}
		{{end}}
				<li><a href="gitool/dashboard"><i
						class="fa fa-dashboard fa-fw"></i> Dashboard</a></li>
				<li><a href="#"><i class="fa fa-pencil-square-o fa-fw"></i>
						我的任务清单<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="my_task_list.html">进行中</a></li>
						<li><a href="gitool/my_task_list?q=done">已完成</a></li>
						<li><a href="gitool/my_task_list?q=related">相关联</a></li>
					</ul></li>
	
				<li><a href="#"><i class="fa fa-pencil-square-o fa-fw"></i>
						提交新任务<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="gitool/new_task?branch_type=1">集成发布</a></li>
						<li><a href="new_task.html">独立发布</a></li>
						<li><a href="javatool/new_task">java发布</a></li>
					</ul></li>
	
				<li><a href="gitool/integrated_release"><i
						class="fa fa-share-alt fa-fw"></i> 集成上线操作</a></li>
				<li><a href="gitool/online_list"><i
						class="fa fa-list fa-fw"></i> 上线记录</a></li>
				<li><a href="#"><i class="fa fa-file-image-o fa-fw"></i>
						静态文件<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="gitool/img_repo_release">图片推送</a></li>
						<!--li>
	                                 <a href="gitool/static_change_version">修改版本号 (开发中...)</a>
	                             </li-->
					</ul></li>
	
				<li><a href="#"><i class="fa fa-cubes fa-fw"></i>
						Worker操作<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="worker/branch_worker_list">Test/Pre环境测试中的Worker</a>
						</li>
						<!--li>
	                                 <a href="worker/test_worker_list">Test环境Worker</a>
	                             </li-->
						<li><a href="worker/worker_list">Online环境Worker</a></li>
					</ul></li>
				<li><a href="#"><i class="fa fa-cubes fa-fw"></i>
						Crontab操作<span class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="crontab/branch_crontab_list">Test/Pre环境测试中的Crontab</a>
						</li>
						<li><a href="crontab/crontab_list">Online环境Crontab</a></li>
					</ul></li>
				<li><a href="#"><i class="fa fa-gear fa-fw"></i> 性能测试报告<span
						class="fa arrow"></span></a>
					<ul class="nav nav-second-level">
						<li><a href="gitool/per_list">历史报告</a></li>
						<!--li>
	                                 <a href="gitool/proc_repo_config">Proc-Repo</a>
	                             </li-->
					</ul></li>
			</ul>
		</div>
		<!-- /.sidebar-collapse -->
	</div>
	<!-- /.navbar-static-side -->
</nav>